﻿using OpenTK.Mathematics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Core.ECS.Components
{
    public abstract class CBehavior:IComponent
    {
        public Guid Id
        {
            get => Actor.Id;
            set => Actor.Id = value;
        }
        public CTransform Transform => Actor.Transform;
        public Actor Actor;
        public virtual void Start() { }
        public virtual void Update() { }
        public virtual void FixedUpdate() { }
        public virtual void OnColliderEnter(Actor actor) { }
        public virtual void OnColliderExit(Actor actor) { }
        public virtual void OnColliderStay(Actor actor) { }
    }
}
